﻿@{
    ViewData["Title"] = "角色可访问资源查询";
}

<div class="panel panel-default">
    <div class="form-content">
        <div class="form-body col-md-6">
            <div class="row" id="roleFilter" data-toggle="form" data-field="User" data-grid="#roleGrid" data-filterable="true">
                <input data-field="name,alias" placeholder="请输入 角色/昵称/别名 模糊查询" data-size="6,0,12" data-logic="or" data-operator="contains" />
                <button data-button="query">查询</button>
                <button data-button="clear">清除条件</button>
            </div>
            <div id="roleGrid" data-toggle="grid" data-form="#roleFilter" node="grid" data-content-popup="false" data-changed="#:IdentityResource.roleSelect">
                <div node="columns" node-type="array">
                    <span data-field="image" data-title="角色图片" data-type="image" data-hidden="true"></span>
                    <span data-field="name" data-title="角色名称"></span>
                    <span data-field="alias" data-title="昵称/别名"></span>
                    <span data-field="type" data-title="角色类型" data-data-from="cache.authorizeType"></span>
                    <span data-field="description" data-title="备注说明"></span>
                    <span data-field="state" data-title="状态" data-data-from="cache.dataState" data-hidden="true"></span>
                    <span data-field="createdOn" data-title="创建时间" data-type="datetime" data-hidden="true"></span>
                </div>
                <span node="dataSource">
                    <span node="transport">
                        <span node="read" data-url="/api/Roles">
                        </span>
                    </span>
                    <span node="sort" data-field="name" data-dir="asc"></span>
                </span>
            </div>
        </div>
        <div class="form-body col-md-6" style="padding: 35px 25px;">
            <div id="assginTree" class="k-widget k-treeview" style="max-height:680px">
            </div>
        </div>
    </div>
</div>

<script src=~/js/identityResource.js asp-append-version="true"></script>